/**
  ******************************************************************************
  * @file           : mp3_player.h
  * @version        : v0.1
  * @brief          : Header for mp3_playerx.c file.
  ******************************************************************************
  * @attention
  *
  ******************************************************************************
  */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MP3_PLAYER__H__
#define __MP3_PLAYER__H__

#ifdef __cplusplus
 extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "ff.h"

/* Private includes ----------------------------------------------------------*/


/* Exported types ------------------------------------------------------------*/
typedef struct 
{
    char header[3];
    char ver;
    char revision;
    char flag;
    char size[4];
} ID3V2;

/* Exported constants --------------------------------------------------------*/


/* Exported macro ------------------------------------------------------------*/
#define SAMPLE_TIM      (htim4)
#define POSITION_TIM    (htim3)

/* Exported functions prototypes ---------------------------------------------*/
int MP3Player_init();
int MP3Player_PlayFile(const TCHAR *path);
void MP3Player_position_tim_isr(void);
/* Private defines -----------------------------------------------------------*/


#ifdef __cplusplus
}
#endif

#endif /* __MP3_PLAYER__H__ */
